<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>yijuapp</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>      
    // 获取视口大小
      var clinetW = document.documentElement.clientWidth;

      // 计算当前视口和设计稿之间的比例
      var bili = clinetW/750;

      // html的font-size =原font-size*bili
      var nowFontSize = 100*bili;

      // 最后作用到html上
      document.documentElement.style.fontSize = nowFontSize+'px';
    </script>
  </body>
</html>
